package org.example.java8.localDate;

import java.time.Year;
import java.time.temporal.ChronoUnit;
/**
 * java.time.Year:
 * Year提供年的信息，它是不可变类且线程安全的
 *
* This class demonstrates JAVA 8 data and time API
* @author Siva Prasad Rao Janapati
*
*/
public class YearDemonstration {
/**
* @param args
*/
public static void main(String[] args) {
 //Get year
 Year year = Year.now();
 System.out.println("Year ::" + year);
 //know the year is leap year or not
 System.out.println("Is year[" +year+"] leap year?"+ year.isLeap());
 }
}